<!-- examinationOnTheSpot.html -->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:include="inc/examHeader::header"></head>
<script type="text/javascript" src="/exam/js/examinationOnTheSpot.js" ></script>
	<body>
		<!--返回-->
		<div class="back" onclick="location='/examReport/report'"><img src="../images/back.png" /></div>
		<!-- <div th:include="header :: header"></div> -->
		<div class="header-title">
			<span>现场考试学员统计</span>
		</div>
		<div class="spare-a">
			<div class="spare-al">
				<div style="height:10px"></div>
				<ul>
					<a href="/examReport/report">
					<li>
						<p>学员统计</p>
					</li>
					</a>
					<a href="/examReport/achievementStatistics">
					<li>
						<p>成绩统计</p>
					</li>
					</a>
				</ul>
			</div>
			<div class="spare-ar">
				<div class="spare-ara">
					<div class="spare-ara-a clearfix">
						<div class="spare-ara-al">
							<div class="spare-ara-all"><input type="text" placeholder="请输入关键字" id="search"/></div>
							<div class="spare-ara-alr" onClick="js_method()"></div>
						</div>
						<div class="spare-ara-ar">
							<a href="/examReport/addExaminationOnTheSpot" class="spare-tj"  shiro:hasPermission="sys:results:add">添 加</a>
							<a href="#" class="spare-qx" sel="Y" style="display:none" hid='Y' shiro:hasPermission="sys:results:del">全 选</a>
							<a href="#" class="spare-edit" style="display:none" id="modify" hid='Y' shiro:hasPermission="sys:results:edit">编 辑</a>
							<a href="#" class="spare-del" style="display:none" id="del" hid='Y' shiro:hasPermission="sys:results:del">删 除</a>
						</div>
					</div>
					<div class="srcoll-documentation" id="srcoll-documentation">
					<div class="documentation nottake">
						<ul class="lists" id="lists">
							<!-- <a href="#" th:each="collect,iterStat : ${list}">
							<li>
								<div hidden="hidden">
									<input type="checkbox"   name="ids" th:value="${collect.id}"/>
								</div>
								<div class="paper-a" th:text="'试卷名称:'+${collect.paper.name}"></div>
								<div class="paper-b" ><span style="padding-left:0px" th:text="'学员名称:'+${collect.user.userName}"></span><span th:text="'总分:'+${collect.paper.totalScore}"></span><span th:text="'考试成绩:'+${collect.score}"></span></div>
								<div class="paper-c" th:text="'考试日期:'+${collect.createDate}"></div>
								<div class="documentation-check"></div>
							</li>
							</a> -->
						</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
		<script th:inline="javascript">  
/*<![CDATA[*/
           $(function() {	
	 		loadDataPage("/examReport/findExaminationOnTheSpot", "srcoll-documentation",
					"lists", 12, "search"); 
		});
		//构建数据列表
 		function dataKk(data, me) {
			var result = '';
			var arrLen = data.length;
			if (arrLen > 0) {
				 for (var i = 0; i < arrLen; i++) {
					result += '<a href="#">' + '<li><div hidden="hidden"><input type="checkbox"   name="ids" value="'+data[i].id+'"/></div>'
							+ '<div class="paper-a">试卷名称：' + data[i].paper.name+ '</div>'
							+ '<div class="paper-b">学员姓名：' + data[i].user.userName + '<span>总分：' + data[i].paper.totalScore+ '</span>'+ '<span>考试成绩：' + data[i].score+ '</span>'+ '</div>'
							+ '<div class="paper-c">考试日期：' + data[i].createDate+ '</div>'
							+ '<div class="documentation-check"></div>'
							+ '</li>' + '</a>'
				}  
			} else {
				me.lock();
				me.noData();
			}
			return result; 
		} 
		 
 		function js_method() {
 			$(".dropload-down").remove();
 			$('#lists').html("");
 			loadDataPage("/examReport/findExaminationOnTheSpot", "srcoll-documentation", "lists", 12,"search");	
 		}
 
           /*]]>*/  
</script>
	</body>
</html>
